﻿@
@model IEnumerable<command_daemon>
@{
    ViewBag.Title = "งานที่รอปรับปรุงอัตโนมัติ";
    var showButtonAs = (ViewBag.Started as bool?) != true ? "Start" : "Stop";
}

<h2>@ViewBag.Title</h2>

<fieldset style="width:200px; height: 100px; border:solid 1px gray; background-color: rgb(236, 236, 236); margin:0 auto">
    <legend>Process</legend> 
    <br/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    @using (Html.BeginForm())
    {
        <button type="submit" id="submitProcess" name="submitProcess" value="@showButtonAs" style="width: 120px; height: 40px; background-color: silver; margin: 0 auto; color: white;">@showButtonAs</button>
    }
</fieldset>
<span style="text-align: center">@ViewBag.Message</span>